<?php

use yii\db\Schema;
use yii\db\Migration;

class m160226_021542_update_frenquency_condition extends Migration
{
    public function up()
    {
        $sql = <<<FINE
        alter table {{%condition_frequency}} modify column mode int(1) NOT NULL DEFAULT '0' COMMENT '0 no limit, 1 uniq device, 2 ip, 3 person'
FINE;
        $this->execute($sql);
    }

    public function down()
    {
        return true;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
